-
-
Notifications
You must be signed in to change notification settings - Fork 964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: courier template configs #2156
Conversation
Codecov Report
@@ Coverage Diff @@
## v0.8 #2156 +/- ##
==========================================
+ Coverage 75.70% 75.84% +0.14%
==========================================
Files 295 296 +1
Lines 15715 15858 +143
==========================================
+ Hits 11897 12028 +131
- Misses 2963 2971 +8
- Partials 855 859 +4
Continue to review full report at Codecov.
|
3539f77
to
f32ef51
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! This looks really solid. A few follow ups:
- Could you please add documentation to the courier section which explains how to customize individual templates?
- Is it possible to load only one template from a custom source, and then all other templates are used from the default source?
- Could you customize the recovery or verification e2e test and set one custom template and then, in the respective e2e test, ensure that the custom template is being used? You can add one or two custom templates to here and then assert the contents around here. Alternatively you could also update the config on demand in the e2e test and write an individual test just for the custom template as e2e. To set a custom config value within your test, see here and subsuquently here. I recommend using base64 based template loading to make your life easier.
- Can you please add a schema test to verify that your JSON Schema is correct?
658c2a3
to
d399750
Compare
@Benehiko are you waiting for a review on this one? |
I'm still writing e2e tests, it's almost ready |
6621437
to
5b5024e
Compare
Should be good to go on green CI |
cefde10
to
db1e92a
Compare
It is now possible to override individual courier email templates using the configuration system! Closes #2054
It is now possible to override individual courier email templates using the configuration system! Closes #2054
It is now possible to override individual courier email templates using the configuration system! Closes ory#2054
Related issue(s)
Implements: #2054
Checklist
introduces a new feature.
contributing code guidelines.
vulnerability. If this pull request addresses a security. vulnerability, I
confirm that I got green light (please contact
[email protected]) from the maintainers to push
the changes.
works.
Further Comments